home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Core / source / config.cp < prev    next >
Encoding:
Text File  |  1995-02-25  |  1.4 KB  |  27 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    config.cp
  3. //    Date:                    11/04/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the core configuration functions
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #include    "config.h"
  11.  
  12. //------------------------------------------------------------------------------
  13. //    setup configuration
  14. //------------------------------------------------------------------------------
  15. void    Configure (void)                                                                                                                    //    set up application parameters
  16. {                                                                                                                                                                //    begin
  17.     core_config    **config = (core_config **) GetResource (CONFIG_RSRC, 128);                //    get the core configuration resource
  18.     if ((*config)->reseedRandom)                                                                                                    //    if we should resead the random number generator
  19.         GetDateTime ((ulong *) &qd.randSeed);                                                                                //    help the random number generator be a little more random
  20.     if ((*config)->useTempMemory)                                                                                                    //    if we should use temporary memory for data
  21.     {                                                                                                                                                            //    begin
  22.     }                                                                                                                                                            //    end
  23.     ReleaseResource (Handle (config));                                                                                        //    let go of the configuration data
  24. }                                                                                                                                                                //    end
  25.  
  26. //------------------------------------------------------------------------------
  27.